<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/top.jsp"%>
	
	<c:if test="${empty os}">
    	您还没有下过单	
    </c:if>
    
    <c:if test="${!empty os }">
    
    	<h3>您的订单如下</h3>
    	
    	<table border="1" width="438" align="center">
    	
    		<tr>
    			<th>订单编号</th>
    			<th>订单金额</th>
    			<th>订单状态</th>
    			<th>订单操作</th>
    		</tr>
    		
    		<c:forEach items="${os}" var="o" varStatus="vs">
    		
    			<tr  bgcolor="${vs.index%2==0?'#C9C9C9':'#6192B0'}"  align="center">
    				
    				<td>${o.ordersnum}</td>
    				
	    			<td>${o.money}</td>
	    			
	    			<td>
	    			
	    				<c:choose>
	    				
	    					<c:when test="${o.status==0}">
	    						未付款&nbsp;&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/servlet/ControllerServlet?op=payUI&ordersnum=${o.ordersnum}">[付款]</a>
	    					</c:when>
	    					
	    					<c:when test="${o.status==1}">
	    						已付款
	    					</c:when>
	    					
	    					<c:otherwise>
	    						已发货
	    					</c:otherwise>
	    					
	    				</c:choose>
	    			</td>
	    			
	    			<td>
	    				<a href="">详细</a>
	    			</td>
    			</tr>
    		
    		</c:forEach>
    		
    		
    		
    		
    		
    	</table>
    	
    </c:if>
    
    
  </body>
</html>
